<%--
  Created by IntelliJ IDEA.
  User: lixiaodong
  Date: 2018/4/21
  Time: 10:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>cloudoer</title>

    <link rel="icon" href="<%=basePath%>/jslibs/blog/images/title-r.jpg"/>
    <link rel="stylesheet" href="<%=basePath%>/jslibs/layui/css/layui.css"/>
    <link href="<%=basePath%>/jslibs/blog/css/base.css" rel="stylesheet">
    <link href="<%=basePath%>/jslibs/blog/css/index.css" rel="stylesheet">
    <link href="<%=basePath%>/jslibs/blog/css/article.css" rel="stylesheet">
    <script type="text/javascript" src="<%=basePath%>jslibs/jquery/jquery-3.2.1.min.js"></script>
    <script src="<%=basePath%>/jslibs/layui/layui.js"></script>
    <script src="<%=basePath%>/js/base.js"></script>

</head>
<body>
<header>
    <div style="width:100%;">
        <div style="position: fixed;z-index: 10000;width:1000px;background-color:#848484;">
            <!--<div class="logo f_l"> <a href="javascript:;"><img src="images/logo.png"></a> </div>-->
            <nav id="topnav" class="f_r">
                <ul id="visitor_menu"></ul>
            </nav>
        </div>
    </div>
</header>
<article>

    <div id="main_content_div" class="l_box f_l"></div>

    <div class="r_box f_r" id="main_east"></div>
    <!--r_box end -->
</article>
<footer>
    <p class="ft-copyright">cloudoer 蜀ICP备18010309号-1</p>
    <div id="tbox"> 
        <a id="main_login" href="javascript:;"></a>
        <a id="gotop" href="javascript:void(0)"></a> 
    </div>
</footer>
<script type="text/javascript"></script>
</body>
</html>

<script type="text/javascript" src="<%=basePath%>js/visitor/main.js"></script>
<script type="text/javascript">
    /*var _visitor_main_js = {
        laytpl:null,
        menu_init: function () {
            $.post('/menu/getAll.action',function (data) {
                //var view = $('#article_app');
                var getTpl = '{{#  layui.each(d, function(index, item){ }}' +
                    '<a class="main_menus" href="{{ item.url }}">{{ item.name }}</a>'+
                    '{{#  }); }}';
                _visitor_main_js.laytpl(getTpl).render(data.data, function(html){
                    $('#visitor_menu').html(html);
                });
            });
        },
        suspension_btn: function () {
            $('#gotop').on('click',function () {
                $('body').animate({
                    'scrollTop': 0
                },300);
            });
        }
    }*/
    
    var visitor_main_app = (function () {
        $(function () {
            layui.use(['laytpl','layer'], function () {
                _visitor_main_js.laytpl = layui.laytpl;
                _visitor_main_js.layer = layui.layer;

                _visitor_main_js.menu_init();
                _visitor_main_js.suspension_btn();
                _visitor_main_js.login_btn();
            });
            $('#main_east').load('/visitor/east.action');
        });
    })();
</script>